<%@ taglib prefix="s" uri="/struts-tags" %>
<%--
  Created by IntelliJ IDEA.
  User: WS
  Date: 2020/6/12
  Time: 23:16
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<s:form action="selectBook" method="post" theme="simple">
    <table border="1" width="200" cellspacing=1 class="font1">
        <tr bgcolor="#E9EDF5">
            <td>内容选择</td>
        </tr>
        <tr>
            <td align="left" valign="top" height="400">
                <br>借书证号：<br><br>
                <s:textfield name="lend.readerId" size="15"></s:textfield>
                <s:submit value="查询"></s:submit></td>
        </tr>
    </table>
</s:form>
<s:form action="lendBook" method="post" theme="simple">
    <tr bgcolor="#E9EDF5" class="font1">
        <s:if test="#request.readerId==null">
            <td colspan="2">
                图书信息&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;
                ISBN
                <s:textfield name="lend.ISBN" size="15" disabled="true"></s:textfield>
                &nbsp;&nbsp;&nbsp;&nbsp; 图书ID
                <s:textfield name="lend.bookId" size="15" disabled="true"></s:textfield>
                <s:submit value="借书" disabled="true"></s:submit></td>
        </s:if>
        <s:else>
            <td colspan="2">
                图书信息&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;
                ISBN
                <s:textfield name="lend.ISBN" size="15"></s:textfield>
                &nbsp;&nbsp;&nbsp;&nbsp; 图书ID
                <s:textfield name="lend.bookId" size="15"></s:textfield>
                <input type="hidden" name="lend.readerId" value="<s:property =" #request.readerId"/>"/>
                <s:submit value="借书"></s:submit>
            </td>
        </s:else>
    </tr>
</s:form>

</body>
</html>
